import type { MutableRefObject } from 'react';

// 操作类型
export type IAction = 'create' | 'edit' | 'setting' | 'delete';

// 弹框组件属性类型
export interface IModalProp<T = any> {
    mRef: MutableRefObject<{ openModal: (action: IAction, data?: T) => void } | undefined>;
    update: () => void;
}
